package com.huidao.ui;

import java.util.List;
import com.huidao.data.FoodDb;
import com.huidao.domain.Food;
import com.huidao.domain.MealsSet;


public abstract class Menu {
	private static List<Food> foodList = FoodDb.getFoodList();
	private static List<MealsSet> mealsSetList = FoodDb.getMealsSetList();


public  void show(){
		System.out.println("----------欢迎进入三千食客美食-----------");
		System.out.println("盖浇饭");
		for (Food food : foodList) {
			if (food.getCategory().getCategoryName().equals("盖浇饭")) {
				System.out.println("               " + food.getFoodId() + ": "
						+ food.getName() + "    " + food.getPrice());
			}
		}
		System.out.println("汤类");
		for (Food food : foodList) {
			if (food.getCategory().getCategoryName().equals("汤类")) {
				System.out.println("               " + food.getFoodId() + ": "
						+ food.getName() + "    " + food.getPrice());
			}
		}
		System.out.println("面食");
		for (Food food : foodList) {
			if (food.getCategory().getCategoryName().equals("面食")) {
				System.out.println("               " + food.getFoodId() + ": "
						+ food.getName() + "    " + food.getPrice());
			}
		}
		System.out.println("饮料");
		for (Food food : foodList) {
			if (food.getCategory().getCategoryName().equals("饮料")) {
				System.out.println("               " + food.getFoodId() + ": "
						+ food.getName() + "    " + food.getPrice());
			}
		}
		System.out.println("套餐");
		for (MealsSet mealsSet : mealsSetList) {
			System.out.println("                 " + mealsSet.getMealsSetId()
					+ ":   " + mealsSet.getName() + "  " + mealsSet.getPrice());
		}
}
}
